package com.czh.springboot04.mapper;

import com.czh.springboot04.entity.Question;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface QuestionMapper {
    int addQuestion(Question question);
    int deleteQuestion(int id);
    int updateQuestion(Question question);
    List<Question> findAll();
    List<Question> findByAll();
    Question findById(int id);
}
